/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.univaq.f4i.iw.ex.album.model.impl;

import it.univaq.f4i.iw.ex.album.model.Guest;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author juli
 */
public class GuestMysqlImpl implements Guest{
    private String email;
    private Integer key;
    private MeetingDataLayerMysqlImpl datalayer;

    
    GuestMysqlImpl(MeetingDataLayerMysqlImpl datalayer) {
        key = 0;
        email = "";
        this.datalayer = datalayer;
    }

    GuestMysqlImpl(MeetingDataLayerMysqlImpl datalayer, ResultSet data) throws SQLException {
        this.datalayer = datalayer;
        key = data.getInt("ID");
        email = data.getString("email");
    }
    
    public int getKey(){
        return key;
    }
    
    public void setKey(int key) {
        this.key = key;
    }
    
    public String getEmail() {
    return email;
    }

    public void setEmail(String email) {
       this.email=email;
    }
    
}
